package com.he.eduservice.client;

import com.he.commonutils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;


@FeignClient(value = "service-vod",fallback = VodFileDegradeFeignClient.class)
@Component
public interface VodClient {

    @DeleteMapping("/eduvod/vod/delete/{id}")
    R removeVideo(@PathVariable("id") String videoId);

    @DeleteMapping("/eduvod/vod/delete-batch")
    R removeVideoList(@RequestParam("videoIdList") List<String> videoIdList);
}
